package com.qushiyun.devops.admin.sync.data.vo;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.qushiyun.devops.common.framework.mybatis.typehanlder.FastJsonArrayTypeHandler;
import java.util.Date;
import lombok.Data;

/**
 * TriggerJobVO
 *
 * @author zhouzx
 */
@Data
public class TriggerJobVO {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long conditionId;

    private String conditionName;

    private String name;
    private Integer type;

    private String tenantId;

    /**
     * 每次同步数量
     */
    private Integer step;

    private Integer triggerType;
    private String triggerTime;
    private Long triggerTimestamp;

    /**
     * 时间间隔
     */
    private Long interval;

    private Integer status;


    private Long fromDb;
    private Long toDb;

    private String fromDbName;
    private String toDbName;

    private String fromDbBeforeSql;
    private String fromDbAfterSql;
    private String toDbBeforeSql;
    private String toDbAfterSql;
    private String fromDbErrorSql;
    private String toDbErrorSql;

    private String errorMsg;
    private Integer tableNum;
    private Long dataNum;

    private String remark;


    @TableField(typeHandler = FastJsonArrayTypeHandler.class)
    private JSONArray tableList;

    private Long costTime;
    private Date createTime;
    private Date updateTime;
}
